home *** CD-ROM | disk | FTP | other *** search
- /*************************************************************/
- /* */
- /* You don't need to include this file at all unless you */
- /* want to disable profiling for short portions of your */
- /* program. A good example would be disabling the profiler */
- /* while you call Wait() to wait on user input. To do this, */
- /* surround your Wait() call with PROFILE_OFF and PROFILE_ON */
- /* macros as shown: */
- /* */
- /* PROFILE_OFF(); */
- /* result = Wait(waitbits); */
- /* PROFILE_ON(); */
- /* */
- /* Special note: ALWAYS USE THE CALLS AS SHOWN. Surround */
- /* a simple function call with them. Do NOT */
- /* return from the function in which you */
- /* called PROFILE_OFF without calling */
- /* PROFILE_ON first. Do NOT call PROFILE_ON */
- /* without having called PROFILE_OFF in the */
- /* same function. If you do, the profiler's */
- /* results will be incorrect! */
- /* */
- /*************************************************************/
-
- #if _USE_PROFILING
-
- void __asm _PROLOG(register __a0 char *);
- void __asm _EPILOG(register __a0 char *);
-
- #define PROFILE_OFF() _PROLOG(NULL)
- #define PROFILE_ON() _EPILOG(NULL)
-
- #define PROFILE_PUSH(x) _PROLOG(x)
- #define PROFILE_POP(x) _EPILOG(x)
-
- #else
-
- #define PROFILE_OFF() {}
- #define PROFILE_ON() {}
-
- #endif
-
-